//
//  MyCollectionModel.m
//  WorkNest
//
//  Created by giantumbrella on 15/7/28.
//  Copyright (c) 2015年 nest. All rights reserved.
//

#import "MyCollectionModel.h"

@implementation MyCollectionModel

- (void)decodeDic:(NSDictionary *)dic
{
    if (dic) {
        if (![[dic objectForKey:@"collectionImgURL"] isKindOfClass:[NSNull class]]) {
            self.collectionImgURL = [dic objectForKey:@"collectionImgURL"];
        }
        if (![[dic objectForKey:@"collectionTitle"] isKindOfClass:[NSNull class]]) {
            self.collectionTitle = [dic objectForKey:@"collectionTitle"];
        }
        if (![[dic objectForKey:@"collectionPrice"] isKindOfClass:[NSNull class]]) {
            self.collectionPrice = [dic objectForKey:@"collectionPrice"];
        }
        if (![[dic objectForKey:@"collectionAmount"] isKindOfClass:[NSNull class]]) {
            self.collectionAmount = [dic objectForKey:@"collectionAmount"];
        }
        if (![[dic objectForKey:@"collectionAuthorID"] isKindOfClass:[NSNull class]]) {
            self.collectionAuthorID = [dic objectForKey:@"collectionAuthorID"];
        }
    }
}

@end
